package com.yanqu.road.logic.bussiness.union.activitygroup;

import com.yanqu.road.entity.union.activitygroup.UnionActivityGroup;
import com.yanqu.road.entity.union.activitygroup.UnionActivityGroupRule;
import com.yanqu.road.entity.union.activitygroup.UnionActivityGroupUnion;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UnionActivityGroupBusiness {

    public static Map<Integer, UnionActivityGroup> getUnionActivityGroupMap(int activityId, long gameServerId) {
        return DaoHelper.getUnionActivityGroupDaoImpl().getUnionActivityGroupMap(activityId, gameServerId);
    }

    public static Map<Integer, Map<Integer, UnionActivityGroup>> getNoEndUnionActivityGroupMap(String selectTimeStr, int serverType, long serverId) {
        return DaoHelper.getUnionActivityGroupDaoImpl().getNoEndUnionActivityGroupMap(selectTimeStr, serverType, serverId);
    }

    public static boolean addUnionActivityGroup(UnionActivityGroup data) {
        return DaoHelper.getUnionActivityGroupDaoImpl().add(data);
    }

    public static boolean updateUnionActivityGroup(UnionActivityGroup data) {
        return DaoHelper.getUnionActivityGroupDaoImpl().update(data);
    }

    public static Map<Integer, Integer> getGroupCrossIdMap(int activityId) {
        return DaoHelper.getUnionActivityGroupDaoImpl().getGroupCrossIdMap(activityId);
    }


    public static List<UnionActivityGroupUnion> getUnionActivityGroupUnionList(int activityId, List<Integer> groupIdList) {
        return DaoHelper.getUnionActivityGroupUnionDaoImpl().getUnionActivityGroupUnionList(activityId, groupIdList);
    }

    public static boolean addUnionActivityGroupUnion(UnionActivityGroupUnion data) {
        return DaoHelper.getUnionActivityGroupUnionDaoImpl().add(data);
    }

    public static boolean updateUnionActivityGroupUnion(UnionActivityGroupUnion data) {
        return DaoHelper.getUnionActivityGroupUnionDaoImpl().update(data);
    }

    public static List<UnionActivityGroupRule> getUnionActivityGroupRuleList() {
        return DaoHelper.getUnionActivityGroupRuleDaoImpl().getUnionActivityGroupRuleList();
    }
}
